import request from "@/utils/request";

// 日报
export function getdailyPaper(data) {
  return request({
    url: "/order/total/daily/paper",
    method: "post",
    data: data,
  });
}

// 日充值
export function getRecharge(data) {
  return request({
    url: "/order/total/card/recharge",
    method: "post",
    data: data,
  });
}

// 月待客约客充卡
export function getReception(data) {
  return request({
    url: "/order/total/amount/moon/reception",
    method: "post",
    data: data,
  });
}

// 日技师收入
export function getArtificer(data) {
  return request({
    url: "/order/total/amount/artificer",
    method: "post",
    data: data,
  });
}

// 日合计
export function getAmount(data) {
  return request({
    url: "/order/total/amount",
    method: "post",
    data: data,
  });
}

// 日合计后台
export function getAmountAdmin(data) {
  return request({
    url: "/order/total/amount/admin",
    method: "post",
    data: data,
  });
}

// 导出当日营收
export function getPaperExl(query) {
  return request({
    url: "/order/total/daily/paper/exl",
    method: "get",
    params: query,
    responseType: "blob",
  });
}

// 充值业绩明细
export function getRechargeCardInfo(data) {
  return request({
    url: "/customer/account-statement/pre",
    method: "post",
    data: data,
  });
}

// 项目上钟统计
export function geItemClockTotal(data) {
  return request({
    url: "/order/total/item/clock",
    method: "post",
    data: data,
  });
}

// 技师上钟统计
export function geTeacherClockTotal(data) {
  return request({
    url: "/order/total/item/clock/teacher",
    method: "post",
    data: data,
  });
}

// 项目上钟统计 导出
export function getTotalClockExl(data) {
  return request({
    url: "/order/total/item/clock/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 技师上钟统计 导出
export function getTeacherClockExl(data) {
  return request({
    url: "/order/total/item/clock/teacher/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 技师退钟记录
export function geTeacherOrderBack(data) {
  return request({
    url: "/order/teacher/back",
    method: "post",
    data: data,
  });
}
